define(["oms_model/model"], function($model){
	
	var account = function(data){
		var _this = this;
		if(data){
			this.id = data.id;
			//是否是当前应用
			this.status = data.status;
			//应用别称
			this.appAlias = data.appAlias;
			//租户名称
			this.tenantName = data.tenantName;
			//租户图标
			this.tenantIcon = data.tenantIcon;
		}
		
		this.toMap = function(){
			return $model.toMap(_this);
		};
		
		this.toString = function(){
			return $model.toString(_this);
		}
	}
	
	return account;
});